const serviceSql=require('../service/service')

class userController{
    async user(ctx,next){
        const {id}=ctx.tokenInfo
        let [result]=await serviceSql.user(id)
        delete result.createAt
        delete result.updateAt
        delete result.password
        ctx.body=result
        await next()
    }
}

module.exports=new userController()